package com.itheima.stock.controller;

import com.itheima.stock.common.domian.StockOuterMarketDomin;
import com.itheima.stock.service.StockOutMarketService;
import com.itheima.stock.vo.result.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: siwukun
 * @date: 2022/06/04
 * @description: 外盘指数
 */
@RestController
@RequestMapping("/api/quot/external")
public class StockOutMarketController {
    @Autowired
    private StockOutMarketService stockOutMarketService;

    @GetMapping("/index")
    public R<List<StockOuterMarketDomin>> selectAllStockOutMarket(){
        return stockOutMarketService.queryAllStockOutMarket();
    }
}
